<?php 
//角色管理
?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'mem-sub-grid',
	'dataProvider'=>$model,
	'columns'=>array(
		'zpc_catname',
		array('name'=>'inputtime',
				'value'=>'date("y-m-d H:m",$data->inputtime)',
				'htmlOptions'=>array('class'=>'t_c'),
				),
		array(
			'class'=>'CButtonColumn',
			//注意URL规则
			'updateButtonUrl'=>'Yii::app()->controller->createUrl("updaterole",array("id"=>$data->primaryKey))',
			'deleteButtonUrl'=>'Yii::app()->controller->createUrl("deleterole",array("id"=>$data->primaryKey))',
			'buttons'=>array(
				'view'=>array('visible'=>'false'),	
			),
		),
	),
)); ?>
